package com.fallsvc.re.networkprogramming.singleton.lazy;

/**
 * @auther falls_vc
 * description:
 * @date 2025/10/29  8:48
 */
public class Singleton2 {
    private static Singleton2 singleton = null;

    private Singleton2() {

    }
    public synchronized static Singleton2 getInstance() {
        if (singleton == null) {
            singleton = new Singleton2();
        }

        return singleton;
    }
}
